package com.server.feignApi;

import com.server.fallback.BusinessFeignApiFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description: TODO Business服务调用
 * @Author: mis_wu
 * @Date: 2022/8/30
 *
 *
 **/
@FeignClient(value = "${cloud-business-server-name}", fallbackFactory = BusinessFeignApiFallback.class)
@RequestMapping("/activity")
public interface BusinessFeignApi {

    /**
     * 测试多数据源 默认数据源 指定库
     * @return string
     */
    @GetMapping("/testDynamicSlave1")
    String testDynamicSlave1(String param);


}
